package com.supplychainapi.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 拦截实例配置使用
 * @author xiezhiwei
 *
 */
@RequestMapping("/test")
@RestController
public class TestController extends BaseController {
	
	private Logger logger = LoggerFactory.getLogger(TestController.class);
	
	@RequestMapping(value = "/test", method=RequestMethod.GET)
	public String test() {
		logger.info("测试");
		return "test";
	}
	
	
	@RequestMapping(value = "/test1", method=RequestMethod.GET)
	public String test1() {
		logger.info("测试1");
		return "test1";
	}
	
}
